<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="redis" uri="http://www.shopjsp.com/redisTag/functions" %>
<c:set var="basePath" value="${redis:getSysConfig('base_path_back')}"/>
<script type="text/javascript">
	//修改店铺及企业信息
	function updateShopInfoType(){
		$("input.button_save").attr("disabled","disabled");
		var shopInfoType=$("input[name='shopInfoType'][type='radio']:checked").val();
		var url="${basePath}/back/enterShopInfo/updateShopInfoType.sjson";
		$.post(url,{shopInfoId:$("#ushopInfoId").val(),shopInfoType:shopInfoType},function(data){
			if(data.success){
				closeWin();
				$("#tt").datagrid("reload");
			}else{
				closeWin();
				msgShow("系统提示","更换失败!","warning");
			}
		},'json');
	}
</script>
<div id="updateShopInfoTypeWin">
	<input id="ushopInfoId" type="hidden" name="shopInfoId" value=""/>
	<table align="center" class="addOrEditTable" width="850px;">
		<tr>
			<td class="toright_td" width="150px">店铺名称:&nbsp;&nbsp;</td>
			<td  class="toleft_td">&nbsp;&nbsp;<span id="ushopName"/></td>
		</tr>
		<tr>
			<td class="toright_td" width="150px">所属公司:&nbsp;&nbsp;</td>
			<td class="toleft_td">&nbsp;&nbsp;<span id="ucompanyName"/></td>
		</tr>
		<tr>
			<td class="toright_td" width="150px">店铺简介:&nbsp;&nbsp;</td>
			<td class="toleft_td">&nbsp;&nbsp;<span id="usynopsis" /></td>
		</tr>
		<tr>
			<td class="toright_td" width="150px">所在地:&nbsp;&nbsp;</td>
			<td class="toleft_td">&nbsp;&nbsp;<span id="uaddressForInvoice"/></td>
		</tr>
		<tr>
			<td class="toright_td" width="150px">更换类型:&nbsp;&nbsp;</td>
			<td class="toleft_td" colspan="3">&nbsp;&nbsp;<input  id="ushopInfoType_2" type="radio" name="shopInfoType" checked="checked" value="2"/>入驻店铺&nbsp;&nbsp;<input  id="ushopInfoType_1" type="radio" name="shopInfoType" value="1"/>自营店铺</td>
		</tr>
	</table>
	<div class="editButton"  data-options="region:'south',border:false" >
		<a id="btnSave" class="easyui-linkbutton" icon="icon-save" onclick="updateShopInfoType()" href="javascript:;">确认更换</a>
		<a id="btnCancel" class="easyui-linkbutton" icon="icon-cancel" onclick="closeWin()" href="javascript:;">取消</a>
	</div>
</div>
